﻿using System.Data;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text;
using System.Collections;

namespace GUI
{
    public class HamDungChung
    {
        public void BindingCombox(Entities.GiaTriCombox[] combox, ComboBox box, string hienthi, string giatri)
        {
            if (combox.Length > 0)
            {
                box.DataSource = combox;
                box.DisplayMember = hienthi;
                box.SelectedValue = giatri;
                box.SelectedIndex = 0;
            }
        }
    }

   
    public class UtilitiesVariable
    {
        public static string giatri;
        public static double soluonghientai = 0;

        public static ArrayList arr;


        public static string active;
        public static string nameSpace;
        public static string links;
        public static string IP;
        public static int ports;

        public static string kiemtra;

        public static Entities.TaiKhoan User = null;
        public static Entities.ChiTietQuyen[] chitiet = null;

        public static string Loai;
        public static string Ngay;
        public static string ThangTrongNam;
        public static string NamCuaThang;
        public static string Nam;
        public static string QuyTrongNam;
        public static string NamCuaQuy;
        public static string TuNgay;
        public static string DenNgay;
        public static string Export;
        public static Entities.LayThongTinCacBang timnhacungcap;
        public static Entities.GiaTriCombox nhanvien;
        public static Entities.GiaTriCombox khachhang;
        public static Entities.GiaTriCombox nhomhang;
        public static bool CheckStart;
        public static bool CheckStop;
    }
}
